package com.gao.qualifiers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @author GaoXi
 * @date 2022/2/24 20:20
 */
@Component
public class SetterDemo {
    private TestBean testBean;

    @Autowired
    public void setTestBean(@Qualifier("testBean2") TestBean testBean) {
        this.testBean = testBean;
    }
}
